sim_dic = {
  "one" => "mot",
  "two" => "hai",
  "three" => "ba",
  "four" => "bon",
  "five" => "nam",
  "six" => "sau",
  "seven" => "bay",
  "eight" => "tam",
  "nine" => "chin",
  "ten" => "muoi",
}
op = "y"
puts "SIMPLE DICTIONARY \n"
while op =="y" do
  puts "Enter word: \t"
  word = gets.chomp
  if sim_dic.has_key?(word) then
    puts "#{word} :  #{sim_dic[word]}"
  else
    puts "The DICTIONARY does not contain this word \n Enter mean of word : "
    val = gets.chomp()
  sim_dic[word] = val
  end
  puts "'Do you want to continue?[y/n]' : "
  op = gets().chomp
end
